package com.buba.customer.service.impl;

import com.buba.customer.dao.CustomerLevelInfMapper;
import com.buba.customer.pojo.CustomerLevelInf;
import com.buba.customer.service.CustomerLevelInfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员级别业务实现类
 */
@Service
public class CustomerLevelInfServiceImpl implements CustomerLevelInfService {

    private CustomerLevelInfMapper customerLevelInfMapper;

    @Override
    public CustomerLevelInf selCustomerLevelInfByUserPoint(Integer userPoint) {
        return customerLevelInfMapper.selCustomerLevelInfByUserPoint(userPoint);
    }

    @Override
    public List<CustomerLevelInf> selCustomerLevelInf() {
        return customerLevelInfMapper.selCustomerLevelInf();
    }

    @Override
    public void delCustomerLevelInf() {
        customerLevelInfMapper.delCustomerLevelInf();
    }

    @Override
    public Integer addCustomerLevelInf(List<CustomerLevelInf> list) {
        return customerLevelInfMapper.addCustomerLevelInf(list);
    }

    public CustomerLevelInfMapper getCustomerLevelInfMapper() {
        return customerLevelInfMapper;
    }

    @Autowired
    public void setCustomerLevelInfMapper(CustomerLevelInfMapper customerLevelInfMapper) {
        this.customerLevelInfMapper = customerLevelInfMapper;
    }
}